package top.bugger168.content.service;

import top.bugger168.content.model.po.CourseTeacher;

import java.util.List;

/**
 * 教师信息服务
 */
public interface CourseTeacherService {
    /**
     * 查找某课程下的所有老师
     * @param courseId 课程id
     * @return top/bugger168/content/model/po/CourseTeacher.java
     */
    List<CourseTeacher> listTeacher(long courseId);

    /**
     * 为某课程增加或修改教师,通过是否有id判断
     * @param courseTeacher 增加教师所用参数
     * @return top/bugger168/content/model/po/CourseTeacher.java
     */
    CourseTeacher saveTeacher(CourseTeacher courseTeacher);


    /**
     * 删除某课程一个教师
     * @param courseId 课程id
     * @param teacherId 待删除教师id
     */
    void removeTeacher(long courseId, long teacherId);
}
